package Entity;

/**
 * @author chenjian
 * @version 1.0
 * @date 2025/3/20 15:53
 * @description
 */
public class Stu {
    public String name;
    public  int age;

    public Stu() {
    }

    public Stu(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //共有吃饭
    public  void  eat(){
        System.out.println("吃饭");
    }

    public void learn(){
        System.out.println("姓名"+name+"\t年龄"+age+"\t学习");//特有；学习
    }
}
